<div id="content-container" class="container">
	<div class="user-section login-section">

		<div class="logon-tab clearfix">
			<a class="active">密 码 {:__('Sign in')}</a>
		</div>
		<div class="login-main">
			<form name="form" id="login-form" class="form-vertical" method="POST" action="">
				<input type="hidden" name="url" value="{$url}" /> {:token()}
				<div class="form-group">
					<!--<label class="control-label" for="account">{:__('Account')}</label>-->
					<div class="controls">
						<input class="form-control input-lg" id="account" type="text" name="account" value="" data-rule="required" placeholder="{:__('Email/Mobile/Username')}" autocomplete="off">
						<div class="help-block"></div>
					</div>
				</div>
				<div class="form-group">
					<!--<label class="control-label" for="password">{:__('Password')}</label>-->
					<div class="controls">
						<input class="form-control input-lg" id="password" type="password" name="password" data-rule="required;password" placeholder="{:__('Password')}" autocomplete="off">
					</div>
				</div>
				<div class="form-group">
					<div class="controls">
						<input type="checkbox" name="keeplogin" checked="checked" value="1"> {:__('Keep login')}
						<div class="pull-right">
							<a href="javascript:;" class="btn-forgot">{:__('Forgot password')}</a>
						</div>
					</div>
				</div>
				<div class="form-group">
					<button type="submit" class="btn btn-primary btn-lg btn-block">{:__('Sign in')}</button>
				</div>
			</form>
			<div class="other">
				<div class="logon-tab">
					<a href="{:url('user/login-sms')}"><img src="/assets/img/sms.png" />快捷登陆</a>
					<a href="{:url('user/login-wechat')}"><img src="/assets/img/wechat.png" />微信登录</a>
				</div>
			</div>
			<div id="toregister">
				<p>没有账号？
					<a href="{:url('user/register')}">马上{:__('Sign up')}</a>
				</p>
			</div>
		</div>

	</div>

</div>

<div id="loginbg">
	<img class="bg1" src="/assets/img/bg1.png" />
	<img class="bg2" src="/assets/img/bg2.png" />
	<img class="bg3" src="/assets/img/round.png"/>
</div>

<script type="text/html" id="resetpwdtpl">
	<form id="resetpwd-form" class="form-horizontal form-layer" method="POST" action="{:url('api/user/resetpwd')}">
		<div class="form-body">
			<input type="hidden" name="action" value="resetpwd" />
			<div class="form-group">
				<!--<label for="" class="control-label col-xs-12 col-sm-3">{:__('Type')}:</label>-->
				<div class="col-xs-12 col-sm-8">
					<div class="radio">
						<label for="type-email"><input id="type-email" checked="checked" name="type" data-send-url="{:url('api/ems/send')}" data-check-url="{:url('api/validate/check_ems_correct')}" type="radio" value="email"> {:__('Reset password by email')}</label>
						<label for="type-mobile"><input id="type-mobile" name="type" type="radio" data-send-url="{:url('api/sms/send')}" data-check-url="{:url('api/validate/check_sms_correct')}" value="mobile"> {:__('Reset password by mobile')}</label>
					</div>
				</div>
			</div>
			<div class="form-group" data-type="email">
				<!--<label for="email" class="control-label col-xs-12 col-sm-3">{:__('Email')}:</label>-->
				<div class="col-xs-12 col-sm-8">
					<input type="text" class="form-control" id="email" name="email" value="" data-rule="required(#type-email:checked);email;remote({:url('api/validate/check_email_exist')}, event=resetpwd, id={$user.id})" placeholder="">
					
				</div>
			</div>
			<div class="form-group hide" data-type="mobile">
				<!--<label for="mobile" class="control-label col-xs-12 col-sm-3">{:__('Mobile')}:</label>-->
				<div class="col-xs-12 col-sm-8">
					<input type="text" class="form-control" id="mobile" name="mobile" value="" data-rule="required(#type-mobile:checked);mobile;remote({:url('api/validate/check_mobile_exist')}, event=resetpwd, id={$user.id})" placeholder="">
					
				</div>
			</div>
			<div class="form-group">
				<!--<label for="captcha" class="control-label col-xs-12 col-sm-3">{:__('Captcha')}:</label>-->
				<div class="col-xs-12 col-sm-8">
					<div class="input-group captchainput">
						<input type="text" name="captcha" class="form-control" data-rule="required;length(4);integer[+];remote({:url('api/validate/check_ems_correct')}, event=resetpwd, email:#email)" />  
						<a href="javascript:;" class="btn btn-info btn-captcha" data-url="{:url('api/ems/send')}" data-type="email" data-event="resetpwd">{:__('Send verification code')}</a>
					</div>
					
				</div>
			</div>
			<div class="form-group">
				<!--<label for="newpassword" class="control-label col-xs-12 col-sm-3">{:__('New password')}:</label>-->
				<div class="col-xs-12 col-sm-8">
					<input type="password" class="form-control" id="newpassword" name="newpassword" value="" data-rule="required;password" placeholder="">
					
				</div>
			</div>
		</div>
		<div class="foot">
			<button type="submit" class="btn btn-md btn-info submit">{:__('Ok')}</button>
		</div>
	</form>
</script>